'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});

var _wxParse = require('../../../../static/wxParse/wxParse.js');

var _wxParse2 = _interopRequireDefault(_wxParse);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var app = getApp();
exports.default = Page({
    data: {
        daili: false
    },
    onLoad: function onLoad(e) {
        var that = this;
        wx.GET(wx.URL.agreements, {}).then(function (res) {
            if (res.code == 0) {
                if (e.id == 1) {
                    _wxParse2.default.wxParse('content', 'html', res.data.content_1, that, 5);
                } else {
                    _wxParse2.default.wxParse('content', 'html', res.data.content_2, that, 5);
                }
            }
        });
    }

});